<div class="row" ng-controller="companyCtrl">
    <div class="col-md-8 col-md-offset-2">
        <div class="wrapper-md">
            <tabset class="tab-container" ng-init="steps={step1:true, step2:false, step3:false}" ng-show="isShow" ng-model="isShow">
                <tab heading="上传二房东（公司）信息"  step-number="1" total-step="3" active="steps.step1" disabled="isDisabled1">
                    <div class="panel-body">
                        <form name="step1" class="bs-example form-horizontal form-validation">

                            <div class="form-group">
                                <label class="col-lg-4 control-label">法人姓名<span class="text-danger font-bold">*</span></label>
                                <div class="col-lg-4">
                                    <input type="text" name="landlordName" class="form-control" ng-model="data.landlordName" placeholder="请输入法人姓名" ng-pattern="" required >
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-4 control-label">法人身份证号<span class="text-danger font-bold">*</span></label>
                                <div class="col-lg-4">
                                    <input type="text" name="idCardNo" class="form-control" ng-model="data.idCardNo" placeholder="请输入身份证号码" ng-pattern="" required>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-lg-4 control-label">房东收款银行<span class="text-danger font-bold">*</span></label>
                                <div class="col-lg-4">
                                    <input type="text" name="bankName" class="form-control" ng-model="data.bankName" placeholder="请输入房东收款银行" ng-pattern="" required >
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-4 control-label">房东收款银行卡号<span class="text-danger font-bold">*</span></label>
                                <div class="col-lg-4">
                                    <input type="text" name="bankAccount" class="form-control" ng-model="data.bankAccount" placeholder="请输入房东收款银行卡号" ng-pattern="" required >
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-lg-4 control-label">法人手机号<span class="text-danger font-bold">*</span></label>
                                <div class="col-lg-4">
                                    <input type="text" name="phone" class="form-control" ng-model="data.phone" placeholder="" ng-pattern="/((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)/" required>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-lg-4 control-label">业务负责人手机号<span ng-if="!!data.clientCard && !!data.clientCardBack" class="text-danger font-bold"></span></label>
                                <div class="col-lg-4">
                                    <input type="text" name="clientPhone" class="form-control" ng-model="data.clientPhone" placeholder="" ng-pattern="/((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)/" ng-required="!!data.clientCard && !!data.clientCardBack">
                                </div>
                            </div>

                            <!-- <div class="form-group">
                                <label class="col-lg-4 control-label">二房东（法人）身份证正反面<span class="text-danger font-bold">*</span></label>
                                <div class="col-lg-8">
                                    <tiny-image source="idCardPic" on-change="idCardPicChange" class="col-lg-10"></tiny-image>
                                    <inout type="hidden" ng-model="data.idCard" required>
                                    <inout type="hidden" ng-model="data.idCardBack" required>
                                    <button type="button" class="btn btn-success col-lg-2" ng-click="showidCardPicTips()">帮助</button>
                                </div>
                            </div>

                            <div class="form-group" ng-show="ClientPhone">
                                <label class="col-lg-4 control-label">二房东业务负责人身份证正反面</label>
                                <div class="col-lg-8">
                                    <tiny-image source="landlordClientPic" on-change="landlordClientPicChange" class="col-lg-10"></tiny-image>
                                    <inout type="hidden" ng-model="data.clientCard">
                                    <inout type="hidden" ng-model="data.clientCardBack">
                                    <button type="button" class="btn btn-success col-lg-2" ng-click="showlandlordClientPicTips()">帮助</button>
                                </div>
                            </div> -->

                            <div class="form-group">
                                <label class="col-lg-4 control-label">公司名称<span class="text-danger font-bold">*</span></label>
                                <div class="col-lg-4">
                                    <input type="text" name="company" class="form-control" ng-model="data.company" required>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-lg-4 control-label">公司地址<span class="text-danger font-bold">*</span></label>
                                <div class="col-lg-4">
                                    <input type="text" name="CompanyAddress" class="form-control" ng-model="data.companyAddress" required>
                                </div>
                            </div>

                            <!-- <div class="form-group" ng-show="ClientPhone">
                                <label class="col-lg-4 control-label">委托业务负责人授权书<span ng-if="!!data.clientCard && !!data.clientCardBack" class="text-danger font-bold">*</span></label>
                                <div class="col-lg-8">
                                    <tiny-image source="clientPic" on-change="clientPicChange" class="col-lg-10"></tiny-image>
                                    <inout type="hidden" ng-model="data.entrust" ng-required="!!data.clientCard && !!data.clientCardBack">
                                    <button type="button" class="btn btn-success col-lg-2" ng-click="showclientPicTips()">帮助</button>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-4 control-label">营业执照<span class="text-danger font-bold">*</span></label>
                                <div class="col-lg-8">
                                    <tiny-image source="certificatePic" on-change="certificatePicChange" class="col-lg-10"></tiny-image>
                                    <inout type="hidden" ng-model="data.certificate" required>
                                    <button type="button" class="btn btn-success col-lg-2" ng-click="showcertificatePicTips()">帮助</button>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-4 control-label">税务登记证与组织机构代码证<br>（三证合一可不提供)<span class="text-danger font-bold">*</span></label>
                                <div class="col-lg-8">
                                    <tiny-image source="codeCertificatePic" on-change="codeCertificatePicChange" class="col-lg-10"></tiny-image>
                                    <inout type="hidden" ng-model="data.codeCertificate" required>
                                    <button type="button" class="btn btn-success col-lg-2" ng-click="showcodeCertificatePicTips()">帮助</button>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-4 control-label">股权证明（公司章程）</label>
                                <div class="col-lg-8">
                                    <tiny-image source="provePic" on-change="provePicChange" class="col-lg-10"></tiny-image>
                                    <inout type="hidden" ng-model="data.prove">
                                    <button type="button" class="btn btn-success col-lg-2" ng-click="showprovePicTips()">帮助</button>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-4 control-label">二房东相关半年收租流水或者提供财报<br>（授信额可以+10%）<span class="text-danger font-bold">*</span></label>
                                <div class="col-lg-8">
                                    <tiny-image source="rentalPic" on-change="rentalPicChange" class="col-lg-10"></tiny-image>
                                    <inout type="hidden" ng-model="data.rental" required>
                                    <button type="button" class="btn btn-success col-lg-2" ng-click="showrentalPicTips()">帮助</button>
                                </div>
                            </div> -->
                            <uploadimgregister></uploadimgregister>
                            <div class="form-group">
                                <label class="col-lg-4 control-label"></label>
                                <div class="col-lg-8">
                                    <input type="checkbox" ng-model="agreement" checked required> 已阅读<span class="text-danger font-bold">*</span> <a ng-click="showTxt()" href="javaScript:;">《个人信用报告查询授权书》</a>
                                </div>
                            </div>

                            <hr>
                            <div class="form-group">
                                <div class="col-lg-offset-4 col-lg-4">
                                    <button type="submit" class="btn btn-default btn-md col-lg-5" ng-click="goBack()">返回</button>
                                    <button type="submit" ng-disabled="step1.$invalid" class="btn btn-default btn-md col-lg-5 col-lg-offset-1" ng-click="companyInfo()">下一步</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </tab>
                <tab heading="审核" step-number="2" total-step="3" disabled="step1.$invalid" active="steps.step2">
                  <div class="panel-body">
                      <form name="step2" class="bs-example form-horizontal form-validation" style="padding: 200px 0px;">
                          <div class="form-group text-center" ng-show="verifying">
                              <img src="img/nav/loading.png">
                              <h3 style="text-align: center;">审核中</h3>
                              <p>系统将在48小时内出审核结果，请耐心等待</p>
                          </div>
                          <div class="form-group text-center" ng-show="verifyFail">
                              <img src="img/nav/fail.png">
                              <h3 style="text-align: center;">退回补件</h3>
                              <p>补件原因: {{verifyFailMessage}}</p>
                              <button class="btn btn-success center" ng-click="update()">补件</button>
                          </div>
                          <div class="form-group text-center" ng-show="verifyFail1">
                              <img src="img/nav/fail.png">
                              <h3 style="text-align: center;">审核失败</h3>
                              <p>审核失败原因: {{verifyFailMessage}}</p>
                          </div>
                      </form>
                  </div>
                </tab>
                <tab heading="成功" step-number="3" total-step="3" disabled="step1.$invalid" active="steps.step3">
                  <form name="step3" class="bs-example form-horizontal form-validation" style="padding: 200px 0px;">
                      <div class="form-group text-center">
                          <img src="img/nav/success.png">
                          <h3 style="text-align: center;">审核通过</h3>
                          <p>您提交的资料已审核通过，您现在可以添加房源了 </p>
                          <button class="btn btn-primary center" ng-click="goHouseEdit()">去录入房源</button>
                      </div>
                  </form>
                </tab>
            </tabset>
        </div>
    </div>
</div>
